import Layout from '@/components/layout/index'

export const supplayMenu = [{
    path: '/', //url路径
    component: Layout, // 此处不用动，这个全局统一的一个布局文件
    redirect: '/dashboard',
    hidden: false,
    title: '报表管理',
    children: [{
      path: 'dashboard', // 二级路径
      name: 'dashboard',
      parentName: '报表管理',
      component: () => import('@/views/dashboard/index'), // 懒加载，此处写所添加文件的路径
      meta: {
        title: '测试',
        icon: 'plane' //配置选项可配置测试名称和图标
      }
    }]
  }, 
  
  
  
  {
    path: '/vuex',
    component: Layout,
    redirect: '/vuex/index',
    hidden: false,
    name: 'vuex',
    title: 'vuex管理',
    children: [{
      path: '/vuex/index',
      name: 'vuexindex',
      parentName: "vuex管理",
      component: () => import('@/views/index/index'),
      meta: {
        title: 'vuex管理',
        icon: 'plane'
      }
    }]
  },
  {
    path: '/order',
    component: Layout,
    redirect: '/order/list',
    hidden: false,
    name: 'order',
    title: '订单管理',
    children: [{
        path: '/order/list',
        component: () => import('@/views/order/list'),
        name: 'orderList',
        parentName: '订单管理',
        meta: {
          title: '订单列表',
          icon: 'list'
        }
      },
      {
        path: '/order/detail',
        component: () => import('@/views/order/detail'),
        name: 'orderDetail',
        parentName: '订单管理',
        meta: {
          title: '订单详情',
          icon: 'list'
        }
      }
    ]

  },
  {
    path: '*',
    name: 'error',
    hidden: true,
    component: () => import('../views/404.vue')
  }

]

export const adminMenu = [

  {
    path: '/', //url路径
    component: Layout, // 此处不用动，这个全局统一的一个布局文件
    redirect: '/dashboard',
    hidden: false,
    title: '报表管理',
    children: [{
      path: 'dashboard', // 二级路径
      name: 'dashboard',
      parentName: '报表管理',
      component: () => import('@/views/dashboard/index'), // 懒加载，此处写所添加文件的路径
      meta: {
        title: '测试',
        icon: 'plane' //配置选项可配置测试名称和图标
      }
    }]
  },

  {
    path: '/article',
    component: Layout,
    redirect: '/article/list',
    hidden: false,
    name: 'article',
    title: '文章管理',
    children: [{
      path: '/article/list',
      name: 'articleList',
      component: () => import('@/views/article/index'),
      parentName: '文章管理',
      meta: {
        title: '文章信息',
        icon: 'list'
      }
    }]
  },
  {
    path: '*',
    name: 'error',
    hidden: true,
    component: () => import('../views/404.vue')
  }


]
